<?php
$this->breadcrumbs=array(
	$model->unitproject->project->name=>array('project/status','id'=>$model->unitproject->project->id),
	Yii::t('project','Project Subdivision')=>array('project/sub','id'=>$model->unitproject->project->id),
	$model->unitproject->name=>array('unitProject/status','id'=>$model->unitproject->id),
	Yii::t('project','Unit Project Subdivision')=>array('unitProject/sub','id'=>$model->unitproject->id),
	$model->name,
);

if($model->start_work_status == 1) {
	$startTrClass = 'success';
	$startStatus = Yii::t('project','Complete');
	$startContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Segment Project Start'), array('segmentProject/start', 'id'=>$model->id));
} else {
	$startTrClass = 'error';
	$startStatus = Yii::t('project','Incomplete');
	$startContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Segment Project Start');
}

if($model->end_work_status == 1) {
	$endTrClass = 'success';
	$endStatus = Yii::t('project','Complete');
	$endContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Segment Project Completion and Acceptance'), array('segmentProject/end', 'id'=>$model->id));
} else {
	$endTrClass = 'error';
	$endStatus = Yii::t('project','Incomplete');
	$endContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Segment Project Completion and Acceptance');
}
	
?>

<table class="table table-hover">
	<caption class="text-info"><?php echo Yii::t('project','The segment project status table');?></caption>
	<thead>
		<tr>
			<th width="25%"><i class="icon-star-empty"></i><?php echo Yii::t('project','Segment Project Status');?></th>
			<th width="25%"><i class="icon-th-large"></i><?php echo Yii::t('project','Segment Project Steps');?></th>
			<th width="50%"><i class="icon-comment"></i><?php echo Yii::t('project','Segment Project Description');?></th>
		</tr>
	</thead>
	<tbody>
		<tr class="success">
			<td><?php echo Yii::t('project','Complete');?></td>
			<td><?php echo CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Segment Project Describe'), array('segmentProject/describe', 'id'=>$model->id));?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Provide the basic details about this segment project');?></td>
		</tr>
		<tr class="<?php echo $startTrClass;?>">
			<td><?php echo $startStatus;?></td>
			<td><?php echo $startContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project',
					'Start the Segment Project and fill in the some details');?></td>
		</tr>
		<tr class="<?php echo $endTrClass;?>">
			<td><?php echo $endStatus;?></td>
			<td><?php echo $endContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project',
					'Upload the Segment Project Construction quality assessment form and fill in the details');?></td>
		</tr>
	</tbody>
</table>
